package com.lovejes.cuniao.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the cn_userimpress table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="cn_userimpress"
 */

public abstract class BaseCnUserimpress  implements Serializable {

	public static String REF = "CnUserimpress";
	public static String PROP_OUSERID = "Ouserid";
	public static String PROP_FLAG = "Flag";
	public static String PROP_PLUSERID = "Pluserid";
	public static String PROP_ID = "Id";
	public static String PROP_CONTENT = "Content";
	public static String PROP_CREATETIME = "Createtime";


	// constructors
	public BaseCnUserimpress () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseCnUserimpress (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.String ouserid;
	private java.lang.String content;
	private java.lang.String pluserid;
	private java.lang.String flag;
	private java.util.Date createtime;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="ID"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: OUSERID
	 */
	public java.lang.String getOuserid () {
		return ouserid;
	}

	/**
	 * Set the value related to the column: OUSERID
	 * @param ouserid the OUSERID value
	 */
	public void setOuserid (java.lang.String ouserid) {
		this.ouserid = ouserid;
	}



	/**
	 * Return the value associated with the column: CONTENT
	 */
	public java.lang.String getContent () {
		return content;
	}

	/**
	 * Set the value related to the column: CONTENT
	 * @param content the CONTENT value
	 */
	public void setContent (java.lang.String content) {
		this.content = content;
	}



	/**
	 * Return the value associated with the column: PLUSERID
	 */
	public java.lang.String getPluserid () {
		return pluserid;
	}

	/**
	 * Set the value related to the column: PLUSERID
	 * @param pluserid the PLUSERID value
	 */
	public void setPluserid (java.lang.String pluserid) {
		this.pluserid = pluserid;
	}



	/**
	 * Return the value associated with the column: FLAG
	 */
	public java.lang.String getFlag () {
		return flag;
	}

	/**
	 * Set the value related to the column: FLAG
	 * @param flag the FLAG value
	 */
	public void setFlag (java.lang.String flag) {
		this.flag = flag;
	}



	/**
	 * Return the value associated with the column: CREATETIME
	 */
	public java.util.Date getCreatetime () {
		return createtime;
	}

	/**
	 * Set the value related to the column: CREATETIME
	 * @param createtime the CREATETIME value
	 */
	public void setCreatetime (java.util.Date createtime) {
		this.createtime = createtime;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.cuniao.domain.CnUserimpress)) return false;
		else {
			com.lovejes.cuniao.domain.CnUserimpress cnUserimpress = (com.lovejes.cuniao.domain.CnUserimpress) obj;
			if (null == this.getId() || null == cnUserimpress.getId()) return false;
			else return (this.getId().equals(cnUserimpress.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}